import Vue from 'vue'
import VueRouter  from 'vue-router'
import helloFlex from '../components/hello-flex.vue'
import FlexDemo from '../components/FlexDemo.vue'

Vue.use(VueRouter );

export default new VueRouter ({
  routes: [
    {
      path: '/helloFlex',
      name: 'helloFlex',
      component: helloFlex,
    },
    {
      path: '/FlexDemo',
      name: 'FlexDemo',
      component: FlexDemo,
    },
    {
      path: '/',
      redirect: '/FlexDemo'
    },
  ]
})
